﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="PrivateMessage.ascx.vb"  Inherits="App_Controls_PrivateMessage" %>
<%@ Register Src="~/App/Controls/PostWrite.ascx" TagPrefix="App" TagName="PostWrite" %>

<div runat="server" class="ListPrivateMess" style="overflow-y: scroll; width: 100%; height: 300px; overflow-x: hidden;">
    
    <asp:ListView runat="server" ID="ListPrivateMess" ClientIDMode="Predictable">
        <ItemTemplate>

            <asp:Panel runat="server" Visible='<%# Eval("is_sent")%>'>
                <div class="img-message-sent" style="width: 20px;">
                    <img src="<%# CurrAccount.Avatar%>">
                </div>
                <div class="message-sent">
                    <div class="time-message-sent"><%# MyUI.Print.TimeNow(Eval("pubb_date").value)%></div>
                    <div class="testo-message-sent"><%# MyUI.Print.Post (eval("post_text")) %><a class="a-icona-busta-b" href="#"></a></div>
                </div>
            </asp:Panel>
            <asp:Panel runat="server" Visible='<%# Not CBool(Eval("is_sent"))%>'>
                <div class="img-message-receive" style="width: 20px;">
                    <img src="<%# Eval("avatar")%>">
                </div>
                <div class="message-receive">
                    <div class="time-message-receive"><%# MyUI.Print.TimeNow(Eval("pubb_date").value)%></div>
                    <div class="testo-message-receive"><%# MyUI.Print.Post (eval("post_text")) %></div>
                </div>
            </asp:Panel>

        </ItemTemplate>
    </asp:ListView>
</div>
<App:PostWrite runat="server" ID="PostPrivate" PrivatePost="True"  EnabledMedia="False" />

